home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / Includes_and_Autodocs_3.5 / include / prefs / wbpattern.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-19  |  2.1 KB  |  76 lines

  1. #ifndef PREFS_WBPATTERN_H
  2. #define PREFS_WBPATTERN_H
  3. /*
  4. **    $VER: wbpattern.h 44.1 (19.10.1999)
  5. **    Includes Release 44.1
  6. **
  7. **    File format for wbpattern preferences
  8. **
  9. **
  10. **    (C) Copyright 1987-1999 Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. /*****************************************************************************/
  15.  
  16. #ifndef LIBRARIES_IFFPARSE_H
  17. #include <libraries/iffparse.h>
  18. #endif
  19.  
  20. /*****************************************************************************/
  21.  
  22. #define ID_PTRN MAKE_ID('P','T','R','N')
  23.  
  24. /*****************************************************************************/
  25.  
  26. struct WBPatternPrefs
  27. {
  28.     ULONG     wbp_Reserved[4];
  29.     UWORD     wbp_Which;            /* Which pattern is it */
  30.     UWORD     wbp_Flags;
  31.     BYTE     wbp_Revision;            /* Must be set to zero */
  32.     BYTE     wbp_Depth;            /* Depth of pattern */
  33.     UWORD     wbp_DataLength;        /* Length of following data */
  34. };
  35.  
  36. /*****************************************************************************/
  37.  
  38. /* constants for WBPatternPrefs.wbp_Which */
  39. #define    WBP_ROOT    0
  40. #define    WBP_DRAWER    1
  41. #define    WBP_SCREEN    2
  42.  
  43. /* wbp_Flags values */
  44. #define    WBPF_PATTERN    0x0001
  45.     /* Data contains a pattern */
  46.  
  47. #define    WBPF_NOREMAP    0x0010
  48.     /* Don't remap the pattern */
  49.  
  50.     /* PDTA_DitherQuality: see pictureclass.h */
  51. #define    WBPF_DITHER_MASK    0x0300
  52. #define    WBPF_DITHER_DEF        0x0000 /* DitherQuality: Default */
  53. #define    WBPF_DITHER_BAD        0x0100 /* DitherQuality: 0 */
  54. #define    WBPF_DITHER_GOOD    0x0200 /* DitherQuality: 2 */
  55. #define    WBPF_DITHER_BEST    0x0300 /* DitherQuality: 4 */
  56.  
  57.     /* OBP_Precision: see pictureclass.h */
  58. #define    WBPF_PRECISION_MASK    0x0C00
  59. #define    WBPF_PRECISION_DEF    0x0000
  60. #define    WBPF_PRECISION_ICON    0x0400
  61. #define    WBPF_PRECISION_IMAGE    0x0800
  62. #define    WBPF_PRECISION_EXACT    0x0C00
  63.  
  64. /*****************************************************************************/
  65.  
  66. #define MAXDEPTH    3    /*  Max depth supported (8 colors) */
  67. #define DEFPATDEPTH    2    /*  Depth of default patterns */
  68.  
  69. /*  Pattern width & height: */
  70. #define PAT_WIDTH    16
  71. #define PAT_HEIGHT    16
  72.  
  73. /*****************************************************************************/
  74.  
  75. #endif /* PREFS_WBPATTERN_H */
  76.